package xlog

import (
	"log"
	"os"
)

var (
	xerror = "[ERROR]"
	xinfo  = "[INFO]"
	xwarn  = "[WARN]"
)

func Error(v ...interface{}) {
	log.SetOutput(os.Stderr)
	log.SetPrefix(xerror)
	log.Println(v)
}

func Info(v ...interface{}) {
	log.SetOutput(os.Stdout)
	log.SetPrefix(xinfo)
	log.Println(v)
}

func Warn(v ...interface{}) {
	log.SetOutput(os.Stdout)
	log.SetPrefix(xwarn)
	log.Println(v)
}
